﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Business;
using Should;

namespace UnitTestBokning
{
    [TestClass]
    public class TestCalculateTime
    {
        Utilities utilities = new Utilities();
        [TestMethod]
        public void CalculateTime_ReturnEasyHourWithoutMinutesCorrectly()
        {
            double time = utilities.CalculateTime("08:00");
            time.ShouldEqual(8, 00);
        }

        [TestMethod]
        public void CalculateTime_ReturnHourAndMinutesCorrectly()
        {
            double time = utilities.CalculateTime("09:15");
            time.ShouldEqual(9, 25);

            time = utilities.CalculateTime("10:36");
            time.ShouldEqual(9, 60);
        }
    }
}
